#include "color.h"

namespace gemren
{
	const float spectrum::infinity = std::numeric_limits<float>::infinity();
	spectrum operator * (const spectrum& s, const spectrum& t) 
	{
		return spectrum(s) *= t;
	}
	spectrum operator * (const float f, const spectrum& s) 
	{
		return spectrum(s) *= f;
	}
	spectrum operator + (const spectrum& s, const spectrum& t) 
	{
		return spectrum(s) += t;
	}
}
std::ostream& operator << (std::ostream& o, const gemren::spectrum& s)
{
	for(int i = 0; i<= s.getl(); ++i)
		o << s.getv(i)<<" ";
	return o;
}
std::ostream& operator << (std::ostream& o, const gemren::spectrum_dynamic& s)
{
	for(int i = 0; i<= s.getl(); ++i)
		o << s.getv(i)<<" ";
	return o;
}